package com.yeyks.consumer.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 领取券表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserCouponInfo对象", description="领取券表")
public class UserCouponInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "优惠券过期时间")
    @TableField("over_time")
    private Date overTime;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "券id")
    @TableField("coupon_id")
    private Integer couponId;

    @ApiModelProperty(value = "券面值，可能是固定值、算法生成值、折扣值，免单则为免单上限值")
    @TableField("coupon_value")
    private Integer couponValue;

    @ApiModelProperty(value = "消费券的订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "获取券时的订单号")
    @TableField("give_order_no")
    private String giveOrderNo;

    @ApiModelProperty(value = "获取券的来源（0推送优惠券，1推广充值，2大礼包充值）")
    @TableField("source")
    private Integer source;

    @ApiModelProperty(value = "是否已使用，0未使用，1已使用, 2已锁定，-1待到账,-2删除")
    @TableField("used")
    private Integer used;


    public static final String ID = "id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String OVER_TIME = "over_time";

    public static final String USER_ID = "user_id";

    public static final String COUPON_ID = "coupon_id";

    public static final String COUPON_VALUE = "coupon_value";

    public static final String ORDER_NO = "order_no";

    public static final String GIVE_ORDER_NO = "give_order_no";

    public static final String SOURCE = "source";

    public static final String USED = "used";

}
